package com.exercise;

public abstract class Phone {
    String brand;
    String color;
    private double price;

    Phone(){

    }
    Phone(String brand){
        this.brand = brand;
    }

    public void setPrice(double price){
        this.price = price;
    }
    public double getPrice(){
        return this.price;
    }
    public void desc(){
        System.out.println("我是" + this.brand + "品牌，颜色是：" + this.color +"，价格为:" + this.price);
    }
    public abstract void newPrice();
}
